<?php

use yii\db\Migration;

/**
 * Handles the creation of table `hello`.
 */
class m180601_115006_create_hello_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->createTable('hello', [
            'id' => $this->primaryKey(),
            'message' => $this->string(10)->notNull()->comment('保存信息'),
            'message2' => $this->string(10)->notNull()->comment('保存信息2'),
        ]);
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropTable('hello');
    }
}
